<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>08_绝对定位</title>
    <style>
        .fu {
            background-color: #f00;
            position: relative;
        }

        .fu > div {
            width: 100px;
            height: 100px;
        }

        .z1 {
            background-color: yellow;
        }

        .z2 {
            background-color: green;
            /*会脱离文档流,释放布局空间,移动参照物为使用了非静态定位的上层元素,最后上限是html,
            相对定位最好子绝父相*/
            position: absolute;
            top: 0;
            right: 0;
        }

        .z3 {
            background-color: cornflowerblue;
        }

    </style>
</head>
<body>
<div class="fu">
    <div class="z1"></div>
    <div class="z2"></div>
    <div class="z3"></div>
</div>
</body>
</html>